package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /*
    * 向订单明细表中插入n条数据
    * */
    void insertBatch(List<OrderDetail> orderDetailList);

    /*
    * 根据订单id查询订单详细信息
    * */
    List<OrderDetail> getByOrderId(Long ordersId);
}
